import java.util.Scanner;
public class Main
{
    public static void main(String[] args)
    {
        Scanner in = new Scanner(System.in);
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入行:");
        int hang = in.nextInt();
        System.out.print("请输入列:");
        int lie = in.nextInt();
        System.out.print("请输入字符:");
        char fuhao = sc.next().charAt(0);
        zhenxin hello = new zhenxin();
        hello.tuxin(hang,lie,fuhao);
    }
}
class zhenxin
{
    public void tuxin(int hang,int lie,char fuhao)
    {
        for(int i=0;i<hang;i++)
        {
            for(int j=0;j<lie;j++)
            {
                System.out.print(fuhao);
            }
            System.out.println();
        }
    }
}